package cn.cy.behavior.chain.pattern;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-09
 */
public class SuperAdminHandler extends Handler {

    @Override
    public void handleRequest(Request request) {
        if ("SUPER_ADMIN".equals(request.getType())) {
            System.out.println("超级管理员处理请求");
        } else if (nextHandler != null) {
            System.out.println("superAdminHandler 交给 nextHandler");
            nextHandler.handleRequest(request);
        }
    }

}
